package com.cauli.manage.notice.model.dto;

import com.cauli.model.dto.BaseDTO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @author Cauli
 * @date 2023-03-27 12:00
 * @description 公告状态修改参数
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "NoticeUpdateStatusDTO", description = "公告状态修改参数")
public class NoticeUpdateStatusDTO extends BaseDTO {
  @JsonSerialize(using = ToStringSerializer.class)
  @NotNull(message = "公告ID不能为空")
  @ApiModelProperty("公告ID")
  private Long noticeId;

  @NotNull(message = "公告状态不能为空")
  @ApiModelProperty("公告状态（0停用 1正常）")
  private Integer status;
}
